package br.com.assessoriaesportiva.service;

import java.util.List;
import java.util.Map;

import br.com.assessoriaesportiva.regradenegocio.RegraNegocioException;

public interface CrudService<T> {

	public Long novo(T t) throws RegraNegocioException;
	public void atualizar(T t);
	public void excluir(T t)throws Exception;
	public T buscarPorID(long id);
	public List<T> buscarPorNQ(String namedQuery,Map<String,Object> params);
	public List<T> listarTodos();
}
